<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    
</head>
<body>
    <div id="app">      
     <aaa></aaa><hr/>
     <aaa>
         <ul slot="ul-slot">
             <li>111</li>
             <li>222</li>
             <li>333</li>
         </ul>
         <ol slot="ol-slot">
             <li>111</li>
             <li>222</li>
             <li>333</li>
         </ol>
     </aaa>
       
    </div>
    <template id="t">
        <div>
             <p>weclome Vue </p>
             <slot name="ul-slot">这是默认的情况1</slot>
             <p>slot:位置，槽口；作用：占据位置</p>
             <slot name="ol-slot">这是默认的情况2</slot>
        </div>
    </template>
    <script src="node_modules/vue/dist/vue.js"></script>
    <script>
      new Vue({
          el: "#app",
          components:{
              'aaa': {
                  template: "#t"
              }
          }
          
      });
    </script>
</body>
</html>